package com.tobe.spring_demo.declarative_transaction.two;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @author yangqifan 2015年9月10日
 * 
 */
public class DeclarSpring2Test {
	
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-config-program-transaction-2.xml");
		
		UserService service =  context.getBean(UserService.class);
//		UserService s = (UserService)service;
//		UserService service = (UserService) context.getBean(UserService.class);
		
		service.a();
		
	}

}

